package io.renren.modules.lucky.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.lucky.dao.AppSysScoreRuleDao;
import io.renren.modules.lucky.entity.AppSysScoreRuleEntity;
import io.renren.modules.lucky.service.AppSysScoreRuleService;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("appSysScoreRuleService")
public class AppSysScoreRuleServiceImpl extends ServiceImpl<AppSysScoreRuleDao, AppSysScoreRuleEntity> implements AppSysScoreRuleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AppSysScoreRuleEntity> page = this.page(
                new Query<AppSysScoreRuleEntity>().getPage(params), new QueryWrapper<AppSysScoreRuleEntity>()
        );
        return new PageUtils(page);
    }

}